﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.CommandPattern.Barbecuer.Abstract
{
    /// <summary>
    /// 抽象的命令
    /// </summary>
    public abstract class AbstractCommand
    {
        /// <summary>
        /// 命令的执行者
        /// </summary>
        protected Barbecuer _receiver;

        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="receiver"></param>
        public AbstractCommand(Barbecuer receiver)
        {
            _receiver = receiver;
        }

        /// <summary>
        /// 执行命令
        /// </summary>
        abstract public void ExcuteCommand();
    }
}
